package com.bgs.controller;

import com.bgs.common.R;
import com.bgs.pojo.vo.DetailOrPicture;
import com.bgs.service.DetailOrPictureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@RestController
@RequestMapping("/bgs/order-DetailOrPicture")
public class DetailOrPictureController {
    @Autowired
    private DetailOrPictureService detailOrPictureService;
    /*根据商品id查询图片*/
    @GetMapping("OneGetDetailId/{orderDetailId}")
    public List<DetailOrPicture> OneGetDetailId(@PathVariable Integer orderDetailId){
        return   detailOrPictureService.OneGetDetailId(orderDetailId);
    }
}
